package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.NonrotordataMapper;
import com.ruoyi.system.domain.Nonrotordata;
import com.ruoyi.system.service.INonrotordataService;

/**
 * 非转子式流速仪Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-19
 */
@Service
public class NonrotordataServiceImpl implements INonrotordataService 
{
    @Autowired
    private NonrotordataMapper nonrotordataMapper;

    /**
     * 查询非转子式流速仪
     * 
     * @param id 非转子式流速仪主键
     * @return 非转子式流速仪
     */
    @Override
    public Nonrotordata selectNonrotordataById(Long id)
    {
        return nonrotordataMapper.selectNonrotordataById(id);
    }

    /**
     * 查询非转子式流速仪列表
     * 
     * @param nonrotordata 非转子式流速仪
     * @return 非转子式流速仪
     */
    @Override
    public List<Nonrotordata> selectNonrotordataList(Nonrotordata nonrotordata)
    {
        return nonrotordataMapper.selectNonrotordataList(nonrotordata);
    }

    /**
     * 新增非转子式流速仪
     * 
     * @param nonrotordata 非转子式流速仪
     * @return 结果
     */
    @Override
    public int insertNonrotordata(Nonrotordata nonrotordata)
    {
        return nonrotordataMapper.insertNonrotordata(nonrotordata);
    }

    /**
     * 修改非转子式流速仪
     * 
     * @param nonrotordata 非转子式流速仪
     * @return 结果
     */
    @Override
    public int updateNonrotordata(Nonrotordata nonrotordata)
    {
        return nonrotordataMapper.updateNonrotordata(nonrotordata);
    }

    /**
     * 批量删除非转子式流速仪
     * 
     * @param ids 需要删除的非转子式流速仪主键
     * @return 结果
     */
    @Override
    public int deleteNonrotordataByIds(Long[] ids)
    {
        return nonrotordataMapper.deleteNonrotordataByIds(ids);
    }

    /**
     * 删除非转子式流速仪信息
     * 
     * @param id 非转子式流速仪主键
     * @return 结果
     */
    @Override
    public int deleteNonrotordataById(Long id)
    {
        return nonrotordataMapper.deleteNonrotordataById(id);
    }
}
